#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	int sum = 1;
	int ret = 0;
	for (i = 1; i <= 3; i++)
	{
		sum = 1;
		for (j = 1; j <= i; j++)
		{
			sum = sum * j;
		}
		ret = ret + sum;
	}
	printf("ret=%d\n", ret);
	return 0;
}